package edu.ustb.aop;

import java.lang.reflect.Method;

import org.apache.log4j.Logger;
import org.springframework.aop.MethodBeforeAdvice;

public class LogMethodBeforeAdvice implements MethodBeforeAdvice  {
	
	Logger logger = Logger.getLogger(LogMethodBeforeAdvice.class);

	@Override
	public void before(Method method, Object[] args, Object target)
			throws Throwable {
		System.out.println("===========================");
		System.out.println("前置通知，日志记录："+method.getName());
	}

}
